Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate CMIP6 lat/lons against CMIP6-specific BBOX #494

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cstephen
Copy link
Contributor

@cstephen cstephen commented Nov 19, 2024

This PR validates lat/lon coordinates for CMIP6-based endpoints against a CMIP6-specific BBOX, which includes everything above ~49.95 latitude. Without this change, CMIP6 endpoints were being validated against the same Alaska-centric East/West BBOXes as the other endpoints, which is just a small subset of the CMIP6 extent.

To test, verify that the following example URLs return data:

http://localhost:5000/indicators/cmip6/point/85/175
http://localhost:5000/cmip6/point/85/175?vars=tas,pr

And also verify that the following two URLs return an error page describing the valid CMIP6 BBOX:

http://localhost:5000/indicators/cmip6/point/30/175
http://localhost:5000/cmip6/point/30/175

@charparr, I'm tagging you for this review since (if memory serves) you were working on an overhaul of the BBOX validation error page recently, and I want to make sure this doesn't conflict with your work. Feel free to modify this PR as needed if so!

@cstephen cstephen requested a review from charparr November 19, 2024 03:22
@cstephen cstephen marked this pull request as draft November 19, 2024 20:26
@cstephen
Copy link
Contributor Author

I set this to draft mode since the work @charparr is doing to receive the per-coverage BBOX(es) from Zeus, and validate lat/lons against those BBOX(es), make this PR's hard-coded BBOX technique outdated. I'll keep this PR around (in draft mode) until the dynamic-BBOX functionality is ready & merged, just in case we need a quick fix approach before Q4 2024 / Q1 2025 launch.

@cstephen cstephen removed the request for review from charparr November 19, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant